package utils

import (
	"time"
)

func TransformTimeToStr(date interface{}) string {
	switch v := date.(type) {
	case string:
		return ""
	case time.Time:
		//return v.Format("2006-01-02 15:04:05")
		return v.Format("2006-01-02")
	}
	return ""
}
